package com.wawayaya.db.entitydao;

import com.wawayaya.bean.HomePage;
import com.wawayaya.db.DBManager;
import com.wawayaya.db.basedao.HomePageDao;

public class HomePageEntityDao extends BaseEntityDao<HomePageDao, HomePage, Long> {

	@Override
	protected HomePageDao initEntityDao() {
		return DBManager.newSession().getHomePageDao();
	}

	public void deleteEntityByKey(Long key) {
		getEntityDao().deleteByKey(key);
	}

	@Override
	public void replaceEntity(HomePage entity) {
		getEntityDao().insertOrReplace(entity);
	}
}
